package com.ecommerce.dal.common;

import com.ecommerce.dal.entity.Photo;
import com.ecommerce.dal.service.impl.PhotoManagerService;

public class TestPhoto {
	public TestPhoto(PhotoManagerService photoManagerService) {
		Photo photo1 = new Photo();
		photo1.setPhotoName("om liza");
		photo1.setPhotoPath("C:\\om liza.jpg");
		photoManagerService.savePhoto(photo1);
		
		Photo photo2 = photoManagerService.retrievePhoto(1L);
		System.out.println("Photo Name: "+photo2.getPhotoName() + " , \nPhotoPath: "+ photo2.getPhotoPath());
		
	}

}
